package com.finalist.service.impl;



import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.finalist.dao.DestinationDao;
import com.finalist.entity.Destination;
import com.finalist.service.DestinationService;

@Service("destinationServiceImpl")
public class DestinationServiceImpl extends BaseServiceImpl<Destination, Long> implements DestinationService{

   @Resource(name = "destinationDaoImpl")
   private DestinationDao destinationDao;
	
	@Resource(name = "destinationDaoImpl")
	public void setBaseDao(DestinationDao destinationDao){
		super.setBaseDao(destinationDao);
	}
	
	@Override
    @Transactional(readOnly = true)
    public boolean nameExists(String name)
    {
        return this.destinationDao.nameExists(name);
    }
	 
}
